import request from '@/utils/request'

// 查询客户类型列表
export function customerTypeList(query) {
  return request({
    url: '/config/customerType/list',
    method: 'get',
    params: query
  })
}

// 添加客户类型
export function customerTypeAdd(data) {
  return request({
    url: '/config/customerType/add',
    method: 'POST',
    data: data
  })
}

// 编辑客户类型
export function customerTypeEdit(data) {
  return request({
    url: '/config/customerType/edit',
    method: 'POST',
    data: data
  })
}

// 删除客户类型
export function customerTypeDelBatch(data) {
  return request({
    url: '/config/customerType/delBatch',
    method: 'POST',
    data: data
  })
}
